home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8299 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: fohnix.metronet.com!not-for-mail
  2. From: milam@fohnix.metronet.com (Stan Milam)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: String manipulation routines for C
  5. Date: 2 Mar 1996 19:31:36 -0600
  6. Organization: Texas Metronet, Inc  (login info (214/488-2590 - 817/571-0400))
  7. Message-ID: <4haspo$ags@fohnix.metronet.com>
  8. References: <4gio78$ipr@bart.rogerswave.ca> <4gntb5$i41@nw002.infi.net>
  9. NNTP-Posting-Host: fohnix.metronet.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Greg DiGiorgio (nngis@norfolk.infi.net) wrote:
  13. : In article <4gio78$ipr@bart.rogerswave.ca>, mfrisch@saturn.tlug.org 
  14. : says...
  15. : >
  16. : >        I am a (Turbo)Pascal programmer from way back, but now I have 
  17. : moved 
  18. : >to Unix and C.  I am looking for a decent library of string manipulation 
  19. : >functions like I am used to in TurboPascal (ie. Copy, Delete, etc.).  
  20. : Can 
  21. : >anybody direct me to the these?  
  22.  
  23. : Mike,
  24.  
  25. : There are over 2 dozen standard, built-in functions for manipulating 
  26. : strings in 'C' - way more than Pascal ever offered. The functions are 
  27. : prototyped in an include file <string.h> and are explained in any 'C' 
  28. : book. Following is a partial list. Please note that you must understand 
  29. : 'C' strings and pointers to use the string functions.
  30.  
  31. : stricmp - same as above, but case insensitive
  32. : strrev - reverse a string
  33. : itoa - xlat an integer to a string (like BASIC's STR fn)
  34.  
  35. These are not standard ANSI functions.  They may exist in your DOS C library,
  36. but more than likely they do *not* exist in a UNIX C library.  I know you are
  37. enthusiastic and trying to help, but please be sure of what you write before
  38. posting.  This kind of misinformation is sure to cause the original poster, and
  39. possibly others, hours of frustration and grief.
  40.  
  41. : There are alot more, but for the newbie, they are not easy to use. Please 
  42. : remember to learn about strings and pointers before you plunge too 
  43. : deeply.
  44.  
  45. Yes, there are more:  what about strlen() which is possibly the most useful
  46. string function of all?
  47.  
  48. Regards,
  49. Stan Milam.
  50.